#include "mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
 setAcceptDrops(true);

}

MainWindow::~MainWindow()
{

}

void MainWindow::le::dragEnterEvent(QDragEnterEvent* event)
{
     event->acceptProposedAction();

}

void  MainWindow::le::dropEvent(QDropEvent* event)
{
   this->setText("123");

}

void MainWindow::tw::dragEnterEvent(QDragEnterEvent* event)
{
     event->acceptProposedAction();
     qDebug() << "Peretaheno";
}

void  MainWindow::tw::dropEvent(QDropEvent* event)
{

}

